package com.itgacl.magic4j.modules.listener.delayQueue;

import com.itgacl.magic4j.libcommon.component.delayQueue.bean.QueueData;
import com.itgacl.magic4j.libcommon.component.delayQueue.listener.MessageOutListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DelayMessageOutListener implements MessageOutListener {

    @Override
    public boolean output(QueueData queueData) {
        log.info("DelayMessageOutListener接收到发出消息：{}。", queueData);
        //TODO 执行业务操作(例如：发送到RocketMQ)
        return true;
    }
}
